import { http } from "./reqeust";

export const getClassify = () => {
  return http.post(
    "/?s=/ApiArticle/getartlist&aid=4&platform=wx&session_id=e5b2ca7fd8a27086568cd148f731cc96&pid=0&scene=1001",
    { bid: 0, cid: 0, pagenum: 1, keyword: "" }
  );
};

export const getArticleList = (data) => {
  return http.post(
    "/?s=/ApiArticle/getartlist&aid=4&platform=wx&session_id=e5b2ca7fd8a27086568cd148f731cc96&pid=0&scene=1001",
    data
  );
};

export const getArticleDetail = (id) => {
  return http.get(
    "/?s=/ApiArticle/detail&aid=4&platform=wx&session_id=e5b2ca7fd8a27086568cd148f731cc96&pid=0&scene=1001&id=" +
      id
  );
};
